/*
 * Host.cpp
 *
 *  Created on: 04/09/2011
 *      Author: george
 */

#include "host.h"


Host::Host(){

}

Host::Host(in_addr addr)
{
	this->addr = addr;
	this->ip = ntohl(this->addr.s_addr);
	this->ipName = string(inet_ntoa(this->addr));
}

in_addr Host::getAddr() const
{
	return addr;
}

u_int32_t Host::getIp() const
{
	return ip;
}

string Host::getIpName() const
{
	return ipName;
}
